package com.example.demo.mapper;
import java.util.List;

import com.example.demo.param.TrainClassParam;
import org.apache.ibatis.annotations.Param;

import com.example.demo.domain.entity.TrainClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author liguang
* @description 针对表【train_class(培训系统-班级)】的数据库操作Mapper
* @createDate 2023-10-28 17:52:53
* @Entity com.example.demo.domain.entity.TrainClass
*/
public interface TrainClassMapper extends BaseMapper<TrainClass> {


    /**
     * 动态新增培训班
     * @param trainClass
     * @return
     */
    int insertSelective(TrainClass trainClass);


    /**
     * 删除培训版
     * @param id
     * @return
     */
    int delById(@Param("id") Integer id);


    /**
     * 动态查询结果
     * @return
     */
    List<TrainClass> selectByParam(TrainClassParam param);


    /**
     * 单个查询
     * @param param
     * @return
     */
    TrainClass selectSingleByParam(TrainClassParam param);


    /**
     * 统计数量
     * @param param
     * @return
     */
    Integer countByExample(TrainClassParam param);






}




